package app.texas.com.devilfishhouse.View.Fragment.home.headline;

import android.view.View;

import com.universal_library.adapter.BaseAdapter;
import com.universal_library.fragment.BaseRecycleViewFragment;

import java.util.ArrayList;
import java.util.List;

import app.texas.com.devilfishhouse.Beans.HotLineBean;
import app.texas.com.devilfishhouse.ui.SimpleBackPage;
import app.texas.com.devilfishhouse.ui.UiHelper;

/**
 * Created by solin on 2018/7/21.
 */

public class HeadLineFragment extends BaseRecycleViewFragment<HotLineBean> {
    private List<HotLineBean> hotLineBeans = new ArrayList<>();

    @Override
    protected void initData() {
        hotLineBeans.add(new HotLineBean());
        hotLineBeans.add(new HotLineBean());
        setmData(hotLineBeans, 2);
    }

    @Override
    protected BaseAdapter getRecycleAdapter() {
        return new HeadLineAdapter(mContext);
    }

    @Override
    public void onItemClick(View itemView, int position) {
        UiHelper.shoSimpleBack(mContext, SimpleBackPage.HEADLINEINFO, null);
    }
}
